package com.day0927.Rental_cars;
/**
*   轿车  汽车 父类
 */

public class Vehicle {
    private String v_brand_name;//品牌
    private String v_number;//车牌号
    protected int day_price;//日租金

    public Vehicle() {
    }

    public Vehicle(String v_brand_name, String v_number, int day_price) {
        this.v_brand_name = v_brand_name;
        this.v_number = v_number;
        this.day_price = day_price;
    }

    public String getV_brand_name() {
        return v_brand_name;
    }

    public void setV_brand_name(String v_brand_name) {
        this.v_brand_name = v_brand_name;
    }

    public String getV_number() {
        return v_number;
    }

    public void setV_number(String v_number) {
        this.v_number = v_number;
    }

    public int getDay_price() {
        return day_price;
    }

    public void setDay_price(int day_price) {
        this.day_price = day_price;
    }



    public double totalPrice(int day){
        System.out.println("输入天数获得总价");
        return 0;
    }
}
